UndirectedAdjacencyListProtocol

public protocol UndirectedAdjacencyListProtocol: AdjacencyListProtocol
where
  VertexEdgeCollection == _AdjacencyList_UndirectedVertexEdgeCollection<_EdgeData>,
  EdgeCollection == _AdjacencyList_UndirectedEdgeCollection<_Storage>,
  _VertexData: _AdjacencyListPerVertexUndirected

Undocumented

UndirectedAdjacencyListProtocol: EdgeListGraph

  • edgeCount Extension method

    The total number of edges within the graph.

    Complexity

    O(|V|)

    Declaration

    Swift

    public var edgeCount: Int { get }
  • edges Extension method

    A collection of all edges in self.

    Declaration

    Swift

    public var edges: EdgeCollection { get }
  • source(of:) Extension method

    Returns the source vertex of edge.

    Declaration

    Swift

    public func source(of edge: EdgeId) -> VertexId
  • destination(of:) Extension method

    Returns the destination vertex of edge.

    Declaration

    Swift

    public func destination(of edge: EdgeId) -> VertexId