graph

fun graph(id: (GraphNode) -> String? = { it.data?.toString() }): NodeGraphModel(source)

the nodes and wires as they are now, id gives the NodeModel.id of a node, by default its data as a string