DictionaryPropertyMap
public struct DictionaryPropertyMap<Graph: GraphProtocol, Key, Value>: ExternalPropertyMap
where Key: Hashable
extension DictionaryPropertyMap: ParallelCapablePropertyMap where Graph: ParallelGraph
An external property map backed by a dictionary.
-
Initialize
selfprovidingvaluesfor each edge.Declaration
Swift
public init(_ values: [Key : Value], defaultValue: Value? = nil) -
Declaration
Swift
public subscript(key: Key) -> Value { get set }
-
Initializes
selfusingvalues;graphis unused, but helps type inference along nicely.Declaration
Swift
public init(_ values: [Graph.EdgeId : Value], forEdgesIn graph: Graph)
-
Initializes
selfusingvalues;graphis unused, but helps type inference along.Declaration
Swift
public init(_ values: [Graph.VertexId : Value], forVerticesIn graph: Graph) -
Initializes
selfwhere every vertex hasvalue;graphis used for type inference.Declaration
Swift
public init(repeating value: Value, forVerticesIn graph: Graph)
View on GitHub
DictionaryPropertyMap Structure Reference