Matrix listToMatrix(List<NodeInput> list, bool centred) { Graph g = Graph(list: list, centred: centred); return g.traverse(); }