I’m an associate professor at DCC/FCUP, at the University of Porto, in Portugal, where I’m also the director of the Master’s in Computer Science. I’m also a senior researcher at CRACS/INESC TEC.
I have a core background in algorithms and data structures. My main research line is focused on network science and on the analysis of complex networks from multiple domains. I am especially interested in the algorithmic aspects of discovering interesting subgraph patterns, including in multilayer and higher-order networks, and I also work on temporal networks, time series analysis through networks and graph machine learning.
I’m also passionate about computer science education and programming contests (I’m an active organizer, problem setter, coach and mentor).
Quick links
- Courses I'm teaching in 2026/2027: AED, PC, Edados (see past years)
- My publications, talks, students and research interests
- I lead the organization of the National Olympiads in Informatics (ONI)

- I organize the Portuguese edition of Bebras - International Challenge on Informatics and Computational Thinking

- A short note on my education, my awards and prizes and who am I
News and events
- 2026-11Our paper Improving network motif analysis: an algorithmic approach with user-defined patterns, with my PhD student Luciano Grácio, was published in the International Journal of Data Science and Analytics.
- 2026-102nd place and a silver medal for a team I’m coaching in MIUP'2026 (Maratona Inter-Universitária de Programação), the portuguese ICPC contest, held at the University of Évora. Our teams also won two bronze medals, making the University of Porto the university with the most awarded teams. The three medalled teams will go to SWERC 2026, in Barcelona.
- 2026-08Our paper Counting subgraphs in multiplex networks, with my PhD student André Meira, was published in Applied Network Science.
Selected publications
-
Counting subgraphs in multiplex networks
doi code
abstract
Beyond isolated nodes, subgraphs are fundamental components of networks, with enormous potential to provide a detailed characterization of the underlying systems. Computing subgraph frequencies is therefore a core task indispensable to several other important network metrics. Yet, quantifying these small pieces is computationally challenging, with no known general polynomial-time solution, driving the search for efficient methodologies. Previous counting methods mainly focused on simple classic networks, consisting of a single layer of connectivity. In the last decade, there has been growing interest in multilayer networks, which provide a more realistic representation of complex systems by incorporating layers. With this integration, fundamental concepts were meanwhile presented in a consolidated manner, forming the basis for the development of our proposed strategy. Seeking to contribute to the advancement of multilayer network analysis, but considering the scarcity of available solutions, we focus on a specific and more limited problem before progressing to the more general case. Here, we focus precisely on providing a subgraph counting methodology by computing the frequency of all subgraphs of a specified size in the multiplex case, which is the most widely used type of multilayer networks. Our implementation builds on the algorithm, extending it to accommodate multiplex networks by adapting its efficient enumeration and isomorphism identification process to address the introduced layers. This adaptation preserves accuracy, making it an available practical tool for counting subgraphs in multiplex networks, with proof of its performance, supported by experimental results that validate its effectiveness in both synthetic and real world datasets.bib
@article{ribeiro-ANS2026, author = {André Couto Meira and Pedro Ribeiro}, title = {Counting subgraphs in multiplex networks}, journal = {Applied Network Science}, volume = {11}, number = {1}, pages = {58}, publisher = {Springer}, doi = {10.1007/s41109-026-00812-4}, month = {August}, year = {2026} } -
Multilayer horizontal visibility graphs for multivariate time series analysis
doi arXiv code
abstract
Multivariate time series analysis is a vital but challenging task, with multidisciplinary applicability, tackling the characterization of multiple interconnected variables over time and their dependencies. Traditional methodologies often adapt univariate approaches or rely on assumptions specific to certain domains or problems, presenting limitations. A recent promising alternative is to map multivariate time series into high-level network structures such as multiplex networks, with past work relying on connecting successive time series components with interconnections between contemporary timestamps. In this work, we first define a novel cross-horizontal visibility mapping between lagged timestamps of different time series and then introduce the concept of multilayer horizontal visibility graphs. This allows describing cross-dimension dependencies via inter-layer edges, leveraging the entire structure of multilayer networks. To this end, a novel parameter-free topological measure is proposed and common measures are extended for the multilayer setting. Our approach is general and applicable to any kind of multivariate time series data. We provide an extensive experimental evaluation with both synthetic and real-world datasets. We first explore the proposed methodology and the data properties highlighted by each measure, showing that inter-layer edges based on cross-horizontal visibility preserve more information than previous mappings, while also complementing the information captured by commonly used intra-layer edges. We then illustrate the applicability and validity of our approach in multivariate time series mining tasks, showcasing its potential for enhanced data analysis and insights.bib
@article{ribeiro-DAMI2025, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Multilayer horizontal visibility graphs for multivariate time series analysis}, journal = {Data Mining and Knowledge Discovery}, volume = {39}, number = {3}, pages = {17}, publisher = {Springer}, doi = {10.1007/s10618-025-01089-4}, month = {March}, year = {2025} } -
Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs
pdf arXiv
abstract
Continuous-time dynamic graphs (CTDGs) are essential for modeling interconnected, evolving systems. Traditional methods for extracting knowledge from these graphs often depend on feature engineering or deep learning. Feature engineering is limited by the manual and time-intensive nature of crafting features, while deep learning approaches suffer from high inference latency, making them impractical for real-time applications. This paper introduces Deep-Graph-Sprints (DGS), a novel deep learning architecture designed for efficient representation learning on CTDGs with low-latency inference requirements. We benchmark DGS against state-of-the-art (SOTA) feature engineering and graph neural network methods using five diverse datasets. The results indicate that DGS achieves competitive performance while inference speed improves between 4x and 12x compared to other deep learning approaches on our benchmark datasets. Our method effectively bridges the gap between deep representation learning and low-latency application requirements for CTDGs.bib
@article{ribeiro-TMLR2024, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and Hugo Ferreira and Pedro Ribeiro and Pedro Bizarro}, title = {Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs}, journal = {Transactions on Machine Learning Research}, month = {November}, year = {2024} } -
A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets
pdf doi arXiv
abstract
Computing subgraph frequencies is a fundamental task that lies at the core of several network analysis methodologies, such as network motifs and graphlet-based metrics, which have been widely used to categorize and compare networks from multiple domains. Counting subgraphs is, however, computationally very expensive, and there has been a large body of work on efficient algorithms and strategies to make subgraph counting feasible for larger subgraphs and networks. This survey aims precisely to provide a comprehensive overview of the existing methods for subgraph counting. Our main contribution is a general and structured review of existing algorithms, classifying them on a set of key characteristics, highlighting their main similarities and differences. We identify and describe the main conceptual approaches, giving insight on their advantages and limitations, and we provide pointers to existing implementations. We initially focus on exact sequential algorithms, but we also do a thorough survey on approximate methodologies (with a trade-off between accuracy and execution time) and parallel strategies (that need to deal with an unbalanced search space).bib
@article{ribeiro-CSUR2021, author = {Pedro Ribeiro and Pedro Paredes and Miguel E. P. Silva and David Aparício and Fernando Silva}, title = {A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets}, journal = {ACM Computing Surveys}, volume = {54}, number = {2}, pages = {1--36}, publisher = {ACM}, doi = {10.1145/3433652}, month = {March}, year = {2021} }