If i have a node \'phone\' then all edges connected to it should have \'red\' color and for \'laptop\' all edges connected should have \'black\' color. All these nodes are c