first java graph tries