TablePropertyMap
public struct TablePropertyMap<Graph: GraphProtocol, Key, Value>: ExternalPropertyMap
where Key: IdIndexable
extension TablePropertyMap: ParallelCapablePropertyMap where Graph: ParallelGraph
A table-based external property map.
-
Undocumented
Declaration
Swift
public var values: [Value]
-
Creates an instance where every key has value
initialValue
.Declaration
Swift
public init(repeating initialValue: Value, count: Int)
-
Creates an instance with
values
, indexed by\Key.index
.Declaration
Swift
public init(_ values: [Value])
-
Declaration
Swift
public subscript(key: Key) -> Value { get set }
-
Creates an instance where every vertex has
initialValue
for use withgraph
.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)
-
Initializes
self
with the default value forcount
verticies.Declaration
Swift
public init(count: Int)
-
Undocumented
Declaration
Swift
public init(forVerticesIn graph: Graph)