public int init(String file)
	{
		try {
			FileInputStream fstream = new FileInputStream(file);
			DataInputStream in = new DataInputStream(fstream);
			BufferedReader br = new BufferedReader(new InputStreamReader(in));
			String strLine = "";
			
			while ((strLine = br.readLine()) != null) {
				if('#' == strLine.charAt(0))	// ignore commented line
					continue;
				
				String[] nodes = strLine.split("\t");
				
				Node nodeFrom = this.getNode(nodes[0]);
				Node nodeTo = this.getNode(nodes[1]);
				
				if( nodeFrom == null)
				{
					nodeFrom = new Node(nodes[0]);
					this.nodes.add(nodeFrom);
				}
				if( nodeTo == null)
				{
					nodeTo = new Node(nodes[1]);
					this.nodes.add(nodeTo);
				}
				
				Edge edge = new Edge(nodeFrom, nodeTo);
				this.edges.add(edge);
				
				nodeFrom.addToNode(nodeTo);
				nodeFrom.addOutEdge(edge);
				
				nodeTo.addFromNode(nodeFrom);
				nodeTo.addInEdge(edge);
						
			}
			in.close();
		} catch (Exception e) {// Catch exception if any
			System.err.println("Error: " + e.getMessage());
			return -1;
		}
		return 0;
	}