All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.graph.DirectedSubGraph Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
package poussecafe.doc.graph;

import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;

public class DirectedSubGraph implements SubGraph {

    private List subGraphs = new ArrayList<>();

    private DirectedGraphNodesAndEdges nodesAndEdges = new DirectedGraphNodesAndEdges();

    private String name;

    @Override
    public List getSubGraphs() {
        return new ArrayList<>(subGraphs);
    }

    public void addSubGraph(DirectedSubGraph subGraph) {
        subGraphs.add(subGraph);
    }

    public DirectedGraphNodesAndEdges getNodesAndEdges() {
        return nodesAndEdges;
    }

    public void setNodesAndEdges(DirectedGraphNodesAndEdges nodesAndEdges) {
        this.nodesAndEdges = nodesAndEdges;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean hasName() {
        return !StringUtils.isEmpty(name);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy