def is_basevar_node(graph, node):
    return 'var' in graph.node.get(node, '') and \
             'basevar' not in graph.node.get(node, '')
Generalized Achlioptas random sparse matrix for random projection
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/is_basevar_node--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/random_projection.py/sparse_random_matrix