1. A method for controlling network connected devices, comprising: receiving a command; using a processor to apply a graph model to identify a subset of nodes related to the command, wherein the graph model includes a plurality of nodes that each correspond to a device and the graph model includes a plurality of edges that specify relationships between the plurality of nodes; and activating the subset of nodes in response to the command.