Class GraphTranslatorSbgnJson


  • public class GraphTranslatorSbgnJson
    extends GraphTranslator
    The class GraphTranslatorSbgnJson translates the internal graph structure into a JSON which is SBGN PD sufficient. The needed form looks like: {"nodes": [ {"bivesClass":"...","compartment":"...","id":"...","label":"...","class":"..."}, ... ], "links": [ {"bivesClass":"...","source":"...","class":"...","target":"..."}, ... ] } The elements order is not important
    Author:
    Tom
    • Constructor Detail

      • GraphTranslatorSbgnJson

        public GraphTranslatorSbgnJson()
    • Method Detail

      • getJsonGraph

        public org.json.simple.JSONObject getJsonGraph()
        Gets the JSON object.
        Returns:
        the JSON object representing the graph