Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    apgl 0.7.2

    Download button

    No screenshots available
    Downloads: 511  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Charanpal Dhanjal | More programs
    LGPL / FREE
    June 18th, 2012, 11:21 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    apgl description

    Another Python Graph Library

    apgl is a fast Python graph library based on numpy and scipy with some machine learning features

    I have written some Python code for working with graphs. The project is currently hosted at SourceForge under the name Another Python Graph Library. The aim of the project is to develop a simple, fast and easy to use graph library. Currently, one can create and modify user defined and random graphs, find shortest paths, and write to Pajek files for visualisation, among other things.

    Here is a small example which creates a graph (using the SparseGraph class) and adds edges to it:

    from graph.SparseGraph import SparseGraph
    from graph.VertexList import VertexList
    import numpy

    numVertices = 10
    numFeatures = 3
    vList = VertexList(numVertices, numFeatures)
    #Set the 1st vertex to [0.1, 0.5, 0.1]. All other vertices are initialised to zero vectors.
    vList.setVertex(0, numpy.array([0.1, 0.5, 0.1]))

    #Create a SparseGraph object and add two edges with weights 2 and 5 respectively.
    sGraph = SparseGraph(vList)
    sGraph.addEdge(0, 1, 2)
    sGraph.addEdge(1, 2, 5)


    More details are given on the homepage of this project http://www.somethingaboutme.net/code2.php.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    graph library | machine learning | Python library | Python | graph | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM