Package org.gephi.io.importer.api

Examples of org.gephi.io.importer.api.EdgeDirection


        if (edgeDraftImpl.isSelfLoop()) {
            selfLoops++;
        }

        //Direction
        EdgeDirection direction = edgeDraftImpl.getDirection();
        if (direction != null) {
            //Counting
            switch (direction) {
                case DIRECTED:
                    directedEdgesCount++;
View Full Code Here


            edgeTypeSets[type] = new Long2ObjectOpenHashMap<int[]>();
        }
    }

    private long getLongId(EdgeDraftImpl edge) {
        EdgeDirection direction = edge.getDirection();
        boolean directed = edgeDefault.equals(EdgeDirectionDefault.DIRECTED)
                || (!edgeDefault.equals(EdgeDirectionDefault.UNDIRECTED) && direction != null && direction == EdgeDirection.DIRECTED);
        return getLongId(edge.getSource(), edge.getTarget(), directed);
    }
View Full Code Here

TOP

Related Classes of org.gephi.io.importer.api.EdgeDirection

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.