Class AutomatonGraphs


  • public class AutomatonGraphs
    extends Object
    Author:
    cl
    • Method Detail

      • generateMapOfEntities

        public static Map<String,​ChemicalEntity> generateMapOfEntities​(AutomatonGraph graph)
        Creates and returns a map that contains all chemical entities that are present in the given graph as values and with the name of the entity as key.
        Parameters:
        graph - A graph with species
        Returns:
        All chemical entities in the graph.
      • createRectangularAutomatonGraph

        public static AutomatonGraph createRectangularAutomatonGraph​(int numberOfColumns,
                                                                     int numberOfRows)
      • useStructureFrom

        public static AutomatonGraph useStructureFrom​(bio.singa.mathematics.graphs.grid.GridGraph gridGraph)
        Copies the structure (nodes and edges) of an UndirectedGraph to a AutomatonGraph. No new data is generated. Indices are persistent. Both Graphs are independently modifiable.
        Parameters:
        gridGraph - The graph to be cast
        Returns:
        The generated automaton graph.
      • circleRegion

        public static Set<AutomatonNode> circleRegion​(AutomatonGraph graph,
                                                      CellRegion membraneRegion,
                                                      bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate centre,
                                                      int radius)
      • fillRegion

        public static void fillRegion​(AutomatonGraph graph,
                                      CellRegion innerRegion,
                                      bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate centre,
                                      int radius)