1. A method of locating lights of a structure, comprising: a plurality of sensor units sensing signals, wherein the plurality of sensor units are associated with a plurality of lights; generating a sensor graph based on the sensed signals, wherein the graph includes nodes that represent light locations, and edges that represent distances between the lights; inexact matching of the sensor graph with a floor plan graph of a floor plan of the structure, wherein the floor plan graph includes exact locations of the sensors within the structure, and matching includes placing each of the sensors based on the exact location of the sensors of the floor plan graph and information about the sensors of the sensor graph, wherein the information comprises vertices and estimated distances between the vertices; and controlling lighting of the plurality of lights of the structure based on the sensed signals and based on the inexact matching of the sensor graph with the floor plan; wherein first-degree neighbors of the vertices of the floor plan graph are known, wherein the first-degree neighbors of the vertices of the sensor graph are estimated based on sensed signals of the sensor, wherein both the floor plan graph and the sensor graph include a same number of vertices.