use egui::Pos2;
use crate::{
graph::{Edge, Node},
widget::{EdgeStyle, NodeStyle},
};
pub trait GuiNode: Node {
fn style(&self) -> NodeStyle;
fn update_position(&self) -> bool;
fn position(&self) -> Pos2;
}
pub trait GuiEdge<N>: Edge<N>
where
N: Node,
{
fn style(&self) -> EdgeStyle;
}