net.automatalib.graphs.IndefiniteGraph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automata-api Show documentation
Show all versions of automata-api Show documentation
This artifact contains the API of AutomataLib, which mainly consists of interfaces
for the various concepts and automaton models supported by the AutomataLib core.
In addition to that, it also defines some fundamental classes for dealing with
words of symbols.
/* Copyright (C) 2013 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* AutomataLib is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 3.0 as published by the Free Software Foundation.
*
* AutomataLib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with AutomataLib; if not, see
* http://www.gnu.de/documents/lgpl.en.html.
*/
package net.automatalib.graphs;
import java.util.Collection;
import net.automatalib.commons.util.mappings.MutableMapping;
/**
* Interface for an (indefinite) graph structure. A graph consists of nodes, each of which
* has outgoing edges connecting to other nodes. In an indefinite graph, the node set is not
* required to be finite.
*
* @author Malte Isberner
*
* @param node class.
* @param edge class.
*/
public interface IndefiniteGraph {
/**
* Retrieves the outgoing edges of a given node.
* @param node the node.
* @return a {@link Collection} of all outgoing edges, or null
if
* the node has no outgoing edges.
*/
public Collection getOutgoingEdges(N node);
/**
* Retrieves, for a given edge, its target node.
* @param edge the edge.
* @return the target node of the given edge.
*/
public N getTarget(E edge);
public MutableMapping createStaticNodeMapping();
public MutableMapping createDynamicNodeMapping();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy