TablePropertyMap

public struct TablePropertyMap<Graph: GraphProtocol, Key, Value>: ExternalPropertyMap
where Key: IdIndexable
extension TablePropertyMap: ParallelCapablePropertyMap where Graph: ParallelGraph

A table-based external property map.

Available where Graph: VertexListGraph, Graph.VertexId: IdIndexable, Key == Graph.VertexId

  • Creates an instance where every vertex has initialValue for use with graph.

    This initializer helps the type inference algorithm, obviating the need to spell out some of the types.

    Declaration

    Swift

    public init(repeating initialValue: Value, forVerticesIn graph: Graph)
  • Creates an instance where the verticies have values values.

    This initializer helps the type inference algorithm, and does some consistency checking.

    Declaration

    Swift

    public init(_ values: [Value], forVerticesIn graph: Graph)

Available where Value: DefaultInitializable

  • Initializes self with the default value for count verticies.

    Declaration

    Swift

    public init(count: Int)

Available where Graph: VertexListGraph, Graph.VertexId: IdIndexable, Value: DefaultInitializable