Changed equals to similar for Nodes, created PHWriting to find patterns in the graph, added some attributes nedded for the search to Edge and PseudoNode