public Edge applyFilterEdgeDirection(Edge current_edge, Node current_node){
        if(this.edge_direction.isEmpty()){
            return current_edge;
        }else if(this.edge_direction.get(current_edge.getName()) == null){
            return current_edge;
        }else{
            if(current_edge.getDirection() == Direction.BOTH){
                if(this.edge_direction.get(current_edge.getName()) == current_edge.getDirection()){
                    return current_edge;
                }else{
                    return null;
                }
            }else{
                if(current_edge.getLeft() == current_node){
                    if(current_edge.getDirection() == this.edge_direction.get(current_edge.getName())){
                        return current_edge;
                    }else{
                        return null;
                    }
                }else{
                    if(current_edge.getDirection() == Direction.RIGHT){
                        if(this.edge_direction.get(current_edge.getName()) == Direction.LEFT){
                            return current_edge;
                        }else{
                            return null;
                        }
                    }else{
                        if(this.edge_direction.get(current_edge.getName()) == Direction.RIGHT){
                            return current_edge;
                        }else{
                            return null;
                        }
                    }
                }
            }
        }
    }