Vue/graf/src/middleware/GrafModel.js
// Expands an edge into two edges and a node
Expands an edge into two edges and a node
Expands an edge into two edges and a node
expandEdge(id) {
		let edge = this.id_edge_map.get(id);
		let source_node = edge.getSource();
		let target_node = edge.getTarget();
		let new_node_id = this.curr_node_id;
		this.removeEdge(id);
		this.addNode();
		this.addEdgeHelper(source_node.getId(), new_node_id);
		this.addEdgeHelper(new_node_id, target_node.getId());
	}
expandEdge ( id ) { let edge = this . id_edge_map . get ( id ) ; let source_node = edge . getSource ( ) ; let target_node = edge . getTarget ( ) ; let new_node_id = this . curr_node_id ; this . removeEdge ( id ) ; this . addNode ( ) ; this . addEdgeHelper ( source_node . getId ( ) , new_node_id ) ; this . addEdgeHelper ( new_node_id , target_node . getId ( ) ) ; }
Expands an edge into two edges and a node
Expands an edge into two edges and a node