mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-20 09:39:38 +01:00
Fix code formatting
This commit is contained in:
parent
b8038dccfa
commit
3f3659a98f
@ -84,7 +84,10 @@ function App() {
|
||||
helperText={(
|
||||
<>
|
||||
For more info on the syntax, have a
|
||||
look <Link href="https://github.com/ellmau/adf-obdd" target="_blank" rel="noreferrer">here</Link>.
|
||||
look
|
||||
{' '}
|
||||
<Link href="https://github.com/ellmau/adf-obdd" target="_blank" rel="noreferrer">here</Link>
|
||||
.
|
||||
</>
|
||||
)}
|
||||
multiline
|
||||
|
||||
@ -20,7 +20,7 @@ G6.registerNode('nodeWithFlag', {
|
||||
opacity: cfg.opacity,
|
||||
},
|
||||
name: 'rectMainLabel',
|
||||
draggable: true
|
||||
draggable: true,
|
||||
});
|
||||
|
||||
group.addShape('text', {
|
||||
@ -36,7 +36,7 @@ G6.registerNode('nodeWithFlag', {
|
||||
// must be assigned in G6 3.3 and later versions. it can be any value you want
|
||||
name: 'textMailLabel',
|
||||
// allow the shape to response the drag events
|
||||
draggable: true
|
||||
draggable: true,
|
||||
});
|
||||
|
||||
if (cfg.subLabel) {
|
||||
@ -58,7 +58,7 @@ G6.registerNode('nodeWithFlag', {
|
||||
opacity: cfg.opacity,
|
||||
},
|
||||
name: 'rectMainLabel',
|
||||
draggable: true
|
||||
draggable: true,
|
||||
});
|
||||
|
||||
group.addShape('text', {
|
||||
@ -75,7 +75,7 @@ G6.registerNode('nodeWithFlag', {
|
||||
// must be assigned in G6 3.3 and later versions. it can be any value you want
|
||||
name: 'textMailLabel',
|
||||
// allow the shape to response the drag events
|
||||
draggable: true
|
||||
draggable: true,
|
||||
});
|
||||
}
|
||||
|
||||
@ -303,10 +303,10 @@ function Graph(props: Props) {
|
||||
// });
|
||||
});
|
||||
|
||||
return () => { graph.off('node:click') };
|
||||
return () => { graph.off('node:click'); };
|
||||
},
|
||||
[graphProps],
|
||||
)
|
||||
);
|
||||
|
||||
useEffect(
|
||||
() => {
|
||||
@ -344,13 +344,16 @@ function Graph(props: Props) {
|
||||
[graphProps],
|
||||
);
|
||||
|
||||
return <>
|
||||
return (
|
||||
<>
|
||||
<div ref={ref} style={{ overflow: 'hidden' }} />
|
||||
<div>
|
||||
<span style={{ color: '#ed6c02' }}>lo edge (condition is false)</span>
|
||||
{' '}
|
||||
<span style={{ color: '#1976d2' }}>hi edge (condition is true)</span>
|
||||
</div></>;
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Graph;
|
||||
|
||||
@ -58,7 +58,11 @@ async fn solve(req_body: web::Json<SolveReqBody>) -> impl Responder {
|
||||
Strategy::FirstStable => Some(adf.stable().next().unwrap()),
|
||||
// TODO: error handling if no such model exists!
|
||||
// TODO: support more than just default heuristics
|
||||
Strategy::FirstStableNogood => Some(adf.stable_nogood(adf_bdd::adf::heuristics::Heuristic::default()).next().unwrap()),
|
||||
Strategy::FirstStableNogood => Some(
|
||||
adf.stable_nogood(adf_bdd::adf::heuristics::Heuristic::default())
|
||||
.next()
|
||||
.unwrap(),
|
||||
),
|
||||
};
|
||||
|
||||
let dto = adf.into_double_labeled_graph(ac.as_ref());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user