Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class graph {
- def getAllPrecursors(n: Node): List[Node] = ...
- }
- class tree extends graph {
- def getParent(n: Node) = ...
- @deprecated("Use getParent rather that getAllPrecursors", "1.0")
- override def getAllPrecursors(n: Node) = List(getParent(n))
- }
Add Comment
Please, Sign In to add comment