pub fn gen_image<N, E, Ty: EdgeType>( graph: ForceGraph<N, E, Ty>, settings: Option<Settings<N, E, Ty>>) -> Result<String, Box<dyn Error>>
Generate an image from a graph and a force.