GraphEdgeType (char type) { GraphEdgeType nodeType = GRAPH_EDGE_TYPE_MAP.get(type); if (nodeType == null) throw new IllegalStateException("Illegal char for graph edge type: " + type); return nodeType; }