[2] | 1 | /* |
---|
| 2 | * To change this template, choose Tools | Templates |
---|
| 3 | * and open the template in the editor. |
---|
| 4 | */ |
---|
| 5 | package org.biohackathon.SPARQLBuilder.OWL; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * |
---|
| 9 | * @author atsuko |
---|
| 10 | */ |
---|
| 11 | import java.util.*; |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | public 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 addNodes(String label){ |
---|
| 32 | labels.add(label); |
---|
| 33 | adjlist.add(new LinkedList<LabeledEdge>()); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | } |
---|