Package y.base

Examples of y.base.Graph


        Node node = this.getNode(entity);
        if (node != null) {
            this.getFamixToNodeMap().remove(entity);
            this.getNodeToFamixMap().set(node, null);
            Graph graph = node.getGraph(); // if parent node has been removed, than node is not in the graph anymore
            if (graph != null) {
                node.getGraph().removeNode(node);
            }
            isRemoved = true;
        }
View Full Code Here


        Edge edge = this.getEdge(association);
        if (edge != null) {
            this.getFamixToEdgeMap().remove(association);
            this.getEdgeToFamixMap().set(edge, null);
            Graph graph = edge.getGraph();
            if (graph != null) { // graph is null for edges contained by a collapsed node
                graph.removeEdge(edge);
            }
            isRemoved = true;
        }

        return isRemoved;
View Full Code Here

     */
    public void groupAll() {
        List<Edge> allEdges = new ArrayList<Edge>();

        HierarchyManager hierarchyManager = getRootGraph().getHierarchyManager();
        Graph rootGraph = hierarchyManager.getRootGraph();
        for (NodeCursor nc = rootGraph.nodes(); nc.ok(); nc.next()) {
            Node v = nc.node();
            for (EdgeCursor ec = v.outEdges(); ec.ok(); ec.next()) {
                Edge e = ec.edge();
                allEdges.add(e);
            }
View Full Code Here

TOP

Related Classes of y.base.Graph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.