FormNetwork.from_nodes_and_edges

classmethod FormNetwork.from_nodes_and_edges(nodes, edges)

Construct a network from nodes and edges.

Parameters
  • nodes (list[list[float]] | dict[hashable, list[float]]) – A list of node coordinates or a dictionary of keys pointing to node coordinates to specify keys.

  • edges (list[tuple[hashable, hshable]])

Returns

compas.datastructures.Network – A network object.