public static MyNode getNode(String nodeId) {
		Iterator nodes = g.getVertices().iterator();
		while (nodes.hasNext()) {
			MyNode myNode = (MyNode) nodes.next();
			if (nodeId.hashCode() == myNode.id.hashCode()) {
				return myNode;
			}
		}
		return null;
	}