[Soot-list] Editing the ExceptionalUnitGraph

Eric Bodden eric.bodden at mail.mcgill.ca
Thu Jul 30 18:14:26 EDT 2009


> I only found get-methods like "graph.getPredsOf(unit)" but no set-methods
> whatsoever... Or did I put the cart before the horse? Do I have to modify
> the graphs in an "indirect" way and not by set-methods?

Oh, I see. Yes, indeed I would recommend to "wrap" your existing
ExceptionalUnitGraph into another graph that implements
DirectedGraph<Unit>. Then you have that graph's method delegate to the
wrapped graph when necessary and, in addition, have it add/remove the
edges that you care about.

> P.S.: Please excuse my sometimes confusing sentences. For I'm german and I
> use my "active" english quite seldomly.

Feel free to email me in German if you like :-)

Eric

-- 
Eric Bodden
Software Technology Group
Technical University Darmstadt, Germany


More information about the Soot-list mailing list