almost finish script to pass actors to adjacency lists