Detecting epileptic seizure from EEG signals constitutes a challenging problem of significant importance. Combining adaptive optimal kernel time-frequency representation and visibility graph, we develop a novel method for detecting epileptic seizure from EEG signals. We construct complex networks from EEG signals recorded from healthy subjects and epilepsy patients. Then we employ clustering coefficient, clustering coefficient entropy and average degree to characterize the topological structure of the networks generated from different brain states. In addition, we combine energy deviation and network measures to recognize healthy subjects and epilepsy patients, and further distinguish brain states during seizure free interval and epileptic seizures. Three different experiments are designed to evaluate the performance of our method. The results suggest that our method allows a high-accurate classification of epileptiform EEG signals.