Create a graph whose nodes represent airports.
G =
graph with properties:
Edges: [2×1 table]
Nodes: [3×1 table]
Add a node attribute to indicate whether each airport has free WIFI.
ans =
Name WIFI
_____ _____
'JFK' false
'LAX' true
'DEN' true
Add two new nodes to the graph by creating a table, NodeProps
, containing the node name and WIFI status of each new node. Use addnode
to concatenate NodeProps
to G.Nodes
.
View the modified node table.
ans =
Name WIFI
_____ _____
'JFK' false
'LAX' true
'DEN' true
'ATL' false
'ANC' true