* @param kamProtoEdgeMap
*/
protected void removeOrphanNodes(Map<Integer, KamProtoNode> kamProtoNodeMap, Map<Integer, KamProtoEdge> kamProtoEdgeMap) {
Set<Integer> nodesInUse = new HashSet<Integer>();
for (Entry<Integer, KamProtoEdge> entry : kamProtoEdgeMap.entrySet()) {
KamProtoEdge edge = entry.getValue();
nodesInUse.add(edge.getSourceNode().getId());
nodesInUse.add(edge.getTargetNode().getId());
}
kamProtoNodeMap.keySet().retainAll(nodesInUse);
}