dsadasdasd

* added a method where you can get all the marks
* implemented and tested
* moved main
* changed README
* builded JavaDoc
* builded jar
This commit is contained in:
2019-06-21 23:50:34 +02:00
parent 0de35fd4a1
commit ddc81330ab
152 changed files with 37171 additions and 44 deletions

View File

@@ -108,6 +108,17 @@ public class MapGraph<V, W extends Number> implements Graph<V, W> {
checkNull(vertex);
return edges.containsKey(vertex);
}
@Override
public Collection<Object> marks() {
Collection<Object> ret = new HashSet<>();
markers.forEach((m, v) -> {
if(v.size() > 0)
ret.add(m);
});
return ret;
}
@Override
public void mark(V vertex, Object mark) throws NullPointerException, IllegalArgumentException {