newton.sim.plot_graph#

newton.sim.plot_graph(vertices, edges, edge_labels=None)[source]#

Plots a graph using matplotlib and networkx.

Parameters:
  • vertices – A numpy array of shape (N, 3) containing the vertex positions.

  • edges – A numpy array of shape (M, 2) containing the vertex indices of the edges.

  • edge_labels – A list of edge labels.