Skip to main content

add_node

Function add_node 

Source
pub fn add_node(
    graph: &mut Graph,
    id: Option<Uuid>,
    url: String,
    position: Point2D<f32>,
) -> NodeKey
Expand description

Add a node (fresh random id when id is None; not available on wasm without an explicit id) and return its key.