sgraph_from_atoms
go-to Standard NetworkX bond graph from covalent_bonds on ASE Atoms.
analyze.sgraph_from_atoms(ase_atoms, node_props_dict=None, edge_props_dict=None)Build a NetworkX bond graph from ase_atoms.info['covalent_bonds'] with optional node/edge props.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ase_atoms | ASE atoms object | required | |
| node_props_dict | A dictionary of node properties. The keys are the property names and the values are the property values. The values should be a list of length equal to the number of atoms in the structure | None |
|
| edge_props_dict | A dictionary of edge properties. The keys are the property names and the values are the property values. The values should be a list of length equal to the number of edges in the graph | None |
Returns
| Name | Type | Description |
|---|---|---|
| A networkx graph object. |