Lines Matching defs:src
128 public boolean EdgeIn(String src, String dest) {
129 if (NodeIn(src)) {
130 return getEdge(getNode(src), dest) != null;
209 public boolean addEdge(String src, String dest, double w) {
210 if(EdgeIn(src,dest)){
211 removeEdge(src,dest);
212 addEdge(src,dest,w);
215 if (NodeIn(src) && NodeIn(dest) && !EdgeIn(src, dest)) {
216 getNode(src).getEdges().add(new Edge(getNode(dest), w));
219 getNode(dest).getEdges().add(new Edge(getNode(src), w));