1 2 3 4 5 6 7 8
use crate::graph::{Graph, GraphConfig}; use pyo3::prelude::*; #[pyfunction] pub fn create_graph(config: GraphConfig) -> PyResult<Graph> { let g = Graph::from(config); Ok(g) }