Personal tools
You are here: Home Documentação Snippets de código Como obter um grafo? (PRINCIPAL)
Document Actions

Como obter um grafo? (PRINCIPAL)

Up to Table of Contents

A partir de um arquivo, como obter um grafo para trabalhar?

Esta é uma estrutura básica pra se trabalhar com um grafo:

public class Main {

     public static void main(String[] args) throws Exception{
        //captura o grafo
        IGraph grafo = GraphUtils.getInstance().getGraph("myGraph.graph");
       
...       
    }
}

A variável grafo agora contém o grafo do arquivo myGraph.graph

by ugorox last modified 2006-11-19 22:27
Navigation
Log in


Forgot your password?
New user?
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: