root/BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/LabeledMultiDigraph.java @ 172

リビジョン 12, 0.8 KB (コミッタ: atsuko, 11 年 前)

Nodes->Node

  • 属性 svn:mime-type の設定値 text/plain
行番号 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package org.biohackathon.SPARQLBuilder.OWL;
6
7/**
8 *
9 * @author atsuko
10 */
11import java.util.*;
12
13
14public class LabeledMultiDigraph {
15    List<List<LabeledEdge>> adjlist;
16    List<String> labels;
17    HashMap<String,Integer> labelednodes;
18   
19    public class LabeledEdge{
20        Integer node;
21        String label;
22        Direction direction;
23    }
24   
25    public LabeledMultiDigraph(){
26        adjlist = new ArrayList<List<LabeledEdge>>();
27        labels = new LinkedList<String>();
28        labelednodes = new HashMap<String, Integer>();
29    }
30   
31    public void addNode(String label){
32        labels.add(label);
33        adjlist.add(new LinkedList<LabeledEdge>());
34    }
35   
36}
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。