UndirectedAdjacencyListProtocol
public protocol UndirectedAdjacencyListProtocol: AdjacencyListProtocol
where
VertexEdgeCollection == _AdjacencyList_UndirectedVertexEdgeCollection<_EdgeData>,
EdgeCollection == _AdjacencyList_UndirectedEdgeCollection<_Storage>,
_VertexData: _AdjacencyListPerVertexUndirected
Undocumented
-
edgeCountExtension methodThe total number of edges within the graph.
Complexity
O(|V|)Declaration
Swift
public var edgeCount: Int { get } -
edgesExtension methodA 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
View on GitHub
UndirectedAdjacencyListProtocol Protocol Reference