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
underlying
for use withgraph
. (This initializer helps type inference along.)Declaration
Swift
public init(_ underlying: Underlying, for graph: Graph)
-
Retrieves the property value for
key
ingraph
. -
Sets the property
newValue
forkey
ingraph
.