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.

Available where Graph.EdgeId: Hashable, Key == Graph.EdgeId

  • Initializes self using values; graph is unused, but helps type inference along nicely.

    Declaration

    Swift

    public init(_ values: [Graph.EdgeId : Value], forEdgesIn graph: Graph)

Available where Graph.VertexId: Hashable, Key == Graph.VertexId

  • Initializes self using values; graph is unused, but helps type inference along.

    Declaration

    Swift

    public init(_ values: [Graph.VertexId : Value], forVerticesIn graph: Graph)
  • Initializes self where every vertex has value; graph is used for type inference.

    Declaration

    Swift

    public init(repeating value: Value, forVerticesIn graph: Graph)