Class Employee


  • public class Employee
    extends Object
    • Field Detail

      • id

        public int id
        It's the unique id of each node; unique id of this employee
      • importance

        public int importance
        the importance value of this employee
      • subordinates

        public List<Integer> subordinates
        the id of direct subordinates
    • Constructor Detail

      • Employee

        public Employee​(int id,
                        int importance,
                        List<Integer> subordinates)