Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jungle/core/graph/EdgeList.java @ 8:abed5bd92fcb
commit
author | shoshi <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 03 Jul 2012 18:59:28 +0900 |
parents | src/main/java/jungle/core/graph/Vertexes.java@07b26b4b21e0 |
children |
comparison
equal
deleted
inserted
replaced
7:c3c65308a11b | 8:abed5bd92fcb |
---|---|
1 package jungle.core.graph; | |
2 | |
3 import java.util.Collection; | |
4 | |
5 public interface EdgeList extends Iterable<Vertex> | |
6 { | |
7 public int getLength(); | |
8 public Vertex at(int _i); | |
9 public Collection<Vertex> asVertexCollection(); | |
10 | |
11 public void appendVertex(Vertex _vertex); | |
12 public void appendVertexAt(Vertex _vertex,int _index); | |
13 public void appendVertexCollection(Collection<Vertex> _collection); | |
14 | |
15 public boolean removeFirst(Vertex _vertex); | |
16 public boolean removeFirst(Collection<Vertex> _collection); | |
17 public Vertex remove(int _index); | |
18 | |
19 public Vertex replace(Vertex _vertex,int _index); | |
20 public boolean replaceFirst(Vertex _vertex,Vertex _newVertex); | |
21 | |
22 public boolean compareAndSwap(int _index,Vertex _vertex,Vertex _newVertex); | |
23 public boolean contains(Vertex _vertex); | |
24 | |
25 public String getName(); | |
26 } |