EdgeFilterPropertyMapAdapter
public struct EdgeFilterPropertyMapAdapter<
Underlying: PropertyMap, Filter: EdgeFilterProtocol
>: PropertyMap where Underlying.Graph == Filter.Graph
extension EdgeFilterPropertyMapAdapter: ExternalPropertyMap where Underlying: ExternalPropertyMap
Adapts a PropertyMap to work on an edge-filtered version of a graph.
-
Declaration
Swift
public typealias Graph = EdgeFilterGraph<Underlying.Graph, Filter> -
The key to access properties in
self.Declaration
Swift
public typealias Key = Underlying.Key -
The values stored in
self.Declaration
Swift
public typealias Value = Underlying.Value -
Wraps
underlying.Declaration
Swift
public init(_ underlying: Underlying) -
Wraps
underlyingfor use withgraph. (This initializer helps type inference along.)Declaration
Swift
public init(_ underlying: Underlying, for graph: Graph) -
Retrieves the property value for
keyingraph. -
Sets the property
newValueforkeyingraph.
View on GitHub
EdgeFilterPropertyMapAdapter Structure Reference