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