Class SingleSourceShortestPathModel

    • Constructor Detail

      • SingleSourceShortestPathModel

        public SingleSourceShortestPathModel()
    • Method Detail

      • add

        public void add​(int v,
                        java.util.List<java.lang.Double> distances,
                        java.util.Map<java.lang.Integer,​java.lang.Integer> predecessor)
      • getVertexList

        public java.util.List<java.lang.Integer> getVertexList()
      • setVertexList

        public void setVertexList​(java.util.List<java.lang.Integer> vertexList)
      • writeToFile

        public void writeToFile​(java.lang.String filename)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • writeToStream

        public void writeToStream​(javax.xml.transform.stream.StreamResult stream)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document doc)
                                  throws java.lang.Exception
        Overrides:
        toXml in class XmlMarshallable
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object