21 lines
		
	
	
		
			495 B
		
	
	
	
		
			Java
		
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			495 B
		
	
	
	
		
			Java
		
	
	
public class Edge
 | 
						|
{
 | 
						|
    private Node anfang;
 | 
						|
    private Node ende; 
 | 
						|
    private int wert; 
 | 
						|
    private boolean gerichtet; 
 | 
						|
    
 | 
						|
    public Edge(Node a, Node e, int w, boolean r){
 | 
						|
        this.anfang = a; 
 | 
						|
        this.ende = e;
 | 
						|
        this.wert = w ;
 | 
						|
        this.gerichtet = r;
 | 
						|
    }
 | 
						|
    
 | 
						|
    public Node getAnfang(){return this.anfang;}
 | 
						|
    public Node getEnde(){return this.ende;}
 | 
						|
    public int getWert(){return this.wert;}
 | 
						|
    public boolean istGerichtet(){return this.gerichtet;}
 | 
						|
    
 | 
						|
}
 |