polyTEM.crystal_peaks.vector_graph_utilsΒΆ

Functions

create_edges_from_simulation(graph, ...)

creates edges with edge attribute probability :param graph: networkx Graph to modify :param prob_mat: sparse object, Probability Adjacency Matrix with shape (N, graph.order()) :param node_index: the Node index value that corresponds to the first row in prob_mat

create_nodes_from_vectorfield(vector_field)

param vector_field:

numpy array from CrystalStack3D vector field

load(savefile)

nonintersecting_paths(paths)

Find all nonintersecting paths given paths dictionary, where paths is the output of nx.shortest_path(graph,source)

save(graph, savefile)

sort_largest_subgraph(graph)

Return list of subgraphs based on graph size