Skip to content
Snippets Groups Projects
Commit 0cd6929e authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Add very simple "to_dot" function to opticscenery

parent c929da2c
No related branches found
No related tags found
No related merge requests found
//! This is the documentation for the OPOSSUM software package. OPOSSUM stands for OPen-source Optics Simulation Software and Unified Modeller.
//!
/// The basic structure containing the entire optical model
pub mod opticscenery;
\ No newline at end of file
use petgraph::prelude::DiGraph;
use petgraph::dot::Dot;
#[derive(Default, Debug)]
pub struct Opticscenery {
g: DiGraph<i32,()>
}
impl Opticscenery {
pub fn to_dot(self: &Self) -> String {
format!("{:?}",Dot::new(&self.g))
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment