n nodes in a graph. Each edge represents a relationship or interaction between two nodes. Edges can be directed or undirected:</p>
<ul>
<li><p><strong>Undirected Edges</strong>: Represent bidirectional relationships where the connection does not have a specific direction (e.g., friendship in a social network).</p></li>
<li><p><strong>Directed Edges</strong>: Represent unidirectional relationships where the connection has a specific direction (e.g., a follower relationship in Twitter).</p></li>
<li><p><stron