enhancement: added data parameter to select_nodes_by_layer()
- data=True: returns (node ID, node attrib dict) tuples
rst: refactoring: from_node/to_node -> source_node/target_node
rst: fixed #95, hopefully
- parents of segments were created ad-hoc and erroneously labeled as segments