Show code cell source
import networkx as nx
import matplotlib.pyplot as plt
# Set seed for layout
seed = 2
# Directory structure
structure = {
"Skills": ["Literacy", "Project", "Numeracy", "Workflow", "Challenges"],
"Estimate": ["Interval", "R01", "K24", "U01"],
"Literacy": ["Open-Science", "Self-Publish", "Peer-Reviewed", "Grants", "Proposals"],
"Numeracy": ["Python", "AI", "R", "Stata", "Estimate"],
"AI": ["ChatGPT", "Co-Pilot"],
"Project": ["Manuscript", "Code", "Git"],
"Point": ["Nonparametric", "Semiparametric", "Parametric", "Simulation", "Uses/Abuses"],
"Estimate": ["Point", "Interval"],
"Interval": ["Oneway", "Twoway", "Multivariable", "Hierarchical", "Clinical", "Public"],
"Workflow": ["High School Students", "Undergraduates", "Graduate Students", "Medical Students", "Residents", "Fellows", "Faculty", "Analysts", "Staff", "Collaborators", "Graduates"],
"Challenges": ["Truth", "Rigor", "Error", "Sloppiness", "Fraud", "Learning"],
}
# Gentle colors for children
child_colors = ["lightgreen", "lightpink", "lightyellow",
'lavender', 'lightcoral', 'honeydew', 'azure','lightblue',
]
# 'lightsteelblue', 'lightgray', 'mintcream','mintcream', 'azure', 'linen', 'aliceblue', 'lemonchiffon', 'mistyrose'
# List of nodes to color light blue
light_blue_nodes = ["Literacy", "Numeracy", "You", "Project", "Challenges"]
G = nx.Graph()
node_colors = {}
# Function to capitalize the first letter of each word
def capitalize_name(name):
return ' '.join(word.capitalize() for word in name.split(" "))
# Assign colors to nodes
for i, (parent, children) in enumerate(structure.items()):
parent_name = capitalize_name(parent.replace("_", " "))
G.add_node(parent_name)
# Set the color for Skills
if parent_name == "Skills":
node_colors[parent_name] = 'lightgray'
else:
node_colors[parent_name] = child_colors[i % len(child_colors)]
for child in children:
child_name = capitalize_name(child.replace("_", " "))
G.add_edge(parent_name, child_name)
if child_name in light_blue_nodes:
node_colors[child_name] = 'lightblue'
else:
node_colors[child_name] = child_colors[(i + 6) % len(child_colors)] # You can customize the logic here to assign colors
colors = [node_colors[node] for node in G.nodes()]
# Set figure size
plt.figure(figsize=(30, 30))
# Draw the graph
pos = nx.spring_layout(G, scale=30, seed=seed)
nx.draw_networkx_nodes(G, pos, node_size=10000, node_color=colors, edgecolors='black') # Boundary color set here
nx.draw_networkx_edges(G, pos)
nx.draw_networkx_labels(G, pos, font_size=20)
plt.show()
Graduate Students
Aaliyah Johnson
Abdiel Al-Hussein
Aditya Patel
Aisha Obi
Akiko Tanaka
Alejandro Vasquez
Alina Kuznetsov
Amani El-Ghoul
Amar Bhatia
Anaya Naidu
André Fontaine
Angelica Rodriguez
Anika Singh
Ansel Kim
Antonio Lopez
Arjun Reddy
Asha Nkosi
Bahar Safarova
Beckett O’Donnell
Binh Nguyen
Bodhi Srinivasan
Brielle Watson
Caitlin O’Reilly
Carlos Bermudez
Chandra Joshi
Chike Okonkwo
Dae-Ho Park
Dahlia El-Masri
Darius Washington
Devika Pillai
Diya Sharma
Eduardo Mendoza
Efe Ozturk
Elise Lambert
Emani Abubakar
Emeka Okafor
Enrique Pena
Esmeralda Garcia
Faiza Hassan
Farid Al-Rashid
Fatima Zahid
Felix Schmidt
Gabriela Alvarez
Gaia Romano
Giancarlo D’Amico
Hakim El-Amin
Hana Joo
Hiroshi Yamamoto
Ibrahim Ahmed
Imani Turner
Indira Varma
Ioannis Angelopoulos
Isabella Moreno
Jabari Nkomo
Jada Thompson
Jamil Said
Janelle Martinez
Javier Cortez
Jia Li
Joaquim Barros
Kamala Rajan
Karim Fayed
Keisha Campbell
Khaled Assaf
Kiara Smith
Kofi Mensah
Laila Khaled
Leticia Barbosa
Li Wei Chen
Luisa Rios
Madhavi Latha
Mahir Al-Aziz
Malachi Peters
Malika Benoit
Manuel Ortega
Mariam Saidi
Marius Popescu
Mei Huang
Mikael Johansson
Miriam Goldstein
Mohammed Al-Faraj
Monique Dubois
Nadia Rahman
Nahla Tariq
Nam Phan
Naomi Wanjiru
Naveen Kumar
Neelam Bhatt
Ngoc Dao
Nicolás Herrera
Nour Salim
Olga Petrov
Omari Jones
Padma Rangan
Paolo Conti
Parvati Nayar
Pia Lombardi
Priyanka Chatterjee
Qasim Al-Zahra
Quentin Leroux
Raheem Abdul
Rajan Iyer
Reuben Goldberg
Riko Suzuki
Roshan DeSilva
Sabrina El-Amari
Sade Olufemi
Sahil Mehta
Sanaa Mostafa
Sang Min
Sanjit Roy
Sergio Ruiz
Shanice King
Shanti Desai
Shiori Nakamura
Shreya Banerjee
Simran Kaur
Sofia Dominguez
Solange Fontes
Sunil Verma
Taiwo Adebowale
Takumi Watanabe
Talia Cohen
Tamika Grant
Tao Wang
Tariq Jamal
Tendai Moyo
Thanh Vu
Thiago Ribeiro
Uzoma Eze
Valentina Mironov
Van Le
Victoria Ng
Vivek Deshmukh
Ximena Delgado
Xiu Ying Zhou
Yael Steinberg
Yara Nasser
Yasmeen Al-Hariri
Youssef Boutros
Zahra Khouri
Zainab Al-Salem
Zara Sheikh
Zenaida Maldonado
Zephyr Lachapelle
Zhou Wei
Zuri Njeri
Abdoulaye Diop
Aiden McKenna
Alonzo Morales
Amrita Bains
Asif Qureshi
Beatriz Soto
Boris Ivanov
Caden Fitzgerald
Camille Dupont
Daquan Brooks
Deepa Raghavan
Desiree Villanueva
Dwight Robinson
Elif Yilmaz
Emir Kaya
Fatou Sow
Flavia Costa
Gaurav Bhasin
Hafsa Farooq
Hassan Rizvi
Ikram Elahi
Isidro Valdez
Jaxon Price
Jerome Baptiste
Katarina Novak
Keegan O’Sullivan
Lani Kahale
Luciana Ferreira
Makena Kariuki
Marisol Pena
Naima Salah
Omarion McLeod
Parisa Farsi
Pooja Gopal
Quinlan O’Connor
Rafaela Silva
Ramon Fernandez
Saniyah Ali
Seamus Gallagher
Shayan Rizwan
Takashi Taniguchi
Uday Joshi
Velma Mwangi
Wendell Harris
Xander Grey
Yanira Cordero
Yesenia Guzman
Zalika Diarra
Alejandro Mora
Bianca Rosales
Carlito Espinoza
Damaris Vega
Eleazar Gomez
Francesca Rossi
Guadalupe Torres
Horacio Gutierrez
Ines Silva
Joaquin Mendez
Karla Vargas
Lourdes Guerrero
Mauricio Navarro
Noemi Herrera
Osvaldo Rojas
Paloma Blanco
Reynaldo Chavez
Silvia Marquez
Trinidad Luna
Uriel Delgado
Violeta Mendoza
Wilmer Calderon
Yolanda Ortega
Zacarias Ramos
Aarav Nair
Beatrice Oluoch
Chinaza Okoye
Drishti Patel
Esteban Mora
Faizan Khan
Ghazala Rehman
Hina Yusuf
Idris Kone
Jasleen Bhullar
Khalil Sayed
Lakshmi Raghav
Mohammed Ismail
Nishaan Ahuja
Opeyemi Akinwande
Pranav Mathur
Qamar Zaidi
Rajan Luthra
Sabeen Rizvi
Talha Javed
Uma Iyer
Vasudha Raghavan
Wajahat Mirza
Xian Wu
Yashika Mehta
Zeeshan Aslam
Abeer Qureshi
Bilal Siddiqui
Chandni Verma
Danish Haq
Eshita Kapoor
Faisal Nadeem
Geetika Joshi
Hamza Malik
Ishaan Oberoi
Javeria Khawaja
Kunal Bajaj
Lubna Firdous
Muzammil Ali
Naina Thakur
Owais Shah
Parul Goyal
Qudsia Aslam
Raghav Mehra
Sakina Jaffery
Taher Momin
Uzma Farooq
Vishal Suri
Wasiq Iqbal
Xiu Ling
Yusra Khan
Zulfiqar Ahmed
Aaditya Rajan
Bhavna Malhotra
Charu Sethi
Dipen Patel
Eman Sheikh
Farhan Tariq
Gitanjali Rao
Haroon Rashid
Ishrat Shaikh
Jyoti Rana
Kiran Deshmukh
Lata Mangeshkar