dragging nodes and edge weights to create numbers; drop edge on node to connect on initialization