def get_end_nodes(graph):
    nodelist = [
        i
        for i in graph.nodes_iter()
        if len(graph.neighbors(i))==1
        ]
    return nodelist
@see L{CreateOfflineNode}
dataset/ETHPy150Open ungarj/label_centerlines/src_create_centerlines.py/get_end_nodes--crossover with--dataset/ETHPy150Open ganeti/ganeti/test/py/cmdlib/testsupport/rpc_runner_mock.py/RpcResultsBuilder.AddOfflineNode