def get_start_computers(self):
    if (self.start_hosts == ALL):
        print('Collecting all computer nodes from database...')
        result = self.session.run('MATCH (c:Computer) RETURN DISTINCT id(c) AS computer_id, c.name AS computer_name')
    else:
        print('Collecting computer nodes who have privileged user session from database...')
        result = self.session.run('MATCH(g:Group)-[:AdminTo]->(c:Computer) WITH DISTINCT g MATCH ShortestPath((u:User)-[:MemberOf*0..]->(g)) WITH DISTINCT u as privU MATCH(c: Computer)-[: HasSession]->(privU) RETURN DISTINCT c.name AS computer_name')
    computers = []
    for record in result:
        computers.append(record['computer_name'])
    return computers
def get_start_computers(self):
    if (self.start_hosts == ALL):
        print('Collecting all computer nodes from database...')
        result = self.session.run('MATCH (c:Computer) RETURN DISTINCT id(c) AS computer_id, c.name AS computer_name')
    else:
        print('Collecting computer nodes who have privileged user session from database...')
        result = self.session.run('MATCH(g:Group)-[:AdminTo]->(c:Computer) WITH DISTINCT g MATCH ShortestPath((u:User)-[:MemberOf*0..]->(g)) WITH DISTINCT u as privU MATCH(c: Computer)-[: HasSession]->(privU) RETURN DISTINCT c.name AS computer_name')
    computers = []
    for record in result:
        computers.append(record['computer_name'])
    return computers