EdgeFilterGraph
public struct EdgeFilterGraph<Underlying, EdgeFilter: EdgeFilterProtocol>: GraphProtocol
where EdgeFilter.Graph == Underlying
extension EdgeFilterGraph: VertexListGraph where Underlying: VertexListGraph
extension EdgeFilterGraph: EdgeListGraph where Underlying: EdgeListGraph
extension EdgeFilterGraph: IncidenceGraph where Underlying: IncidenceGraph
extension EdgeFilterGraph: BidirectionalGraph where Underlying: BidirectionalGraph
extension EdgeFilterGraph: PropertyGraph where Underlying: PropertyGraph
extension EdgeFilterGraph: SearchDefaultsGraph where Underlying: SearchDefaultsGraph
Wraps an underlying graph and filters out undesired edges.
-
The name of a vertex in
self
.Declaration
Swift
public typealias VertexId = Underlying.VertexId
-
The name of an edge in
self
.Declaration
Swift
public typealias EdgeId = Underlying.EdgeId
-
All vertices in
self
.Declaration
Swift
public var vertices: Underlying.VertexCollection { get }
-
Declaration
Swift
public var edges: EdgeFilteringCollection<Underlying.EdgeCollection> { get }
-
Returns the source of
edge
. -
Returns the destination of
edge
.
-
Returns a collection of all edges whose source is
vertex
inself
.Declaration
Swift
public func edges(from vertex: VertexId) -> EdgeFilteringCollection<Underlying.VertexEdgeCollection>
-
Returns the source of
edge
. -
Returns the destination of
edge
.
-
Declaration
Swift
public func edges(to vertex: VertexId) -> EdgeFilteringCollection<Underlying.VertexInEdgeCollection>
-
Makes a default color map where every vertex is set to
color
.Declaration
Swift
public func makeDefaultColorMap(repeating color: VertexColor) -> EdgeFilterPropertyMapAdapter<Underlying.DefaultColorMap, EdgeFilter>
-
Makes a default int map for every vertex.
Declaration
Swift
public func makeDefaultVertexIntMap(repeating value: Int) -> EdgeFilterPropertyMapAdapter<Underlying.DefaultVertexIntMap, EdgeFilter>
-
Makes a default vertex property map mapping vertices.
Declaration
Swift
public func makeDefaultVertexVertexMap(repeating vertex: VertexId) -> EdgeFilterPropertyMapAdapter<Underlying.DefaultVertexVertexMap, EdgeFilter>