Class: GraphVertex

algo.core. GraphVertex

new GraphVertex(id, properties)

graph vertex for algo.core.Graph class You can add additional properties to the vertices e.g. mass for layout algorithms but the id property must be treated as read-only.
Parameters:
Name Type Description
id
properties object used defined properties of the vertex
Source: