pub fn layout(graph: &Graph, algorithm: Algorithm) -> Result<LayoutResult>
Headless layout entry point.