InternalEdgePropertyMap
public struct InternalEdgePropertyMap<Graph> : PropertyMap where Graph : PropertyGraph
extension InternalEdgePropertyMap: ParallelCapablePropertyMap where Graph: ParallelGraph, Graph.ParallelProjection: PropertyGraph, Graph.ParallelProjection.Edge == Graph.Edge
A PropertyMap
over the edges of Graph
.
-
Declaration
Swift
public typealias Key = Graph.EdgeId
-
Declaration
Swift
public typealias Value = Graph.Edge
-
Create an
InternalEdgePropertyMap
forgraph
.Declaration
Swift
public init(for graph: Graph)
-
Creates an
InternalEdgePropertyMap
.Declaration
Swift
public init()
-
Retrieves the property value from
graph
foredge
.Declaration
Swift
public func get(_ edge: Graph.EdgeId, in graph: Graph) -> Value
-
Declaration
Swift
public mutating func set(_ edge: Graph.EdgeId, in graph: inout Graph, to newValue: Value)
Available where Graph
: ParallelGraph
, Graph.ParallelProjection
: PropertyGraph
, Graph.ParallelProjection.Edge
== Graph.Edge