first attempt at a Python version: implement floating nodes check using Python graph_data library