if (sourceAsString) {
            source = this.getNodeById(sourceAsString);
            if (!source) {
                var nodeID = edge.source;
                if (typeof nodeID === 'object') {