Structural properties of the currency market were examined with the use of topological networks. Relationships between currencies were analyzed by constructing minimal spanning trees (MSTs). The dissimilarities between time series of currency returns were measured in various ways: by applying Euclidean distance, Pearson's linear correlation coefficient, Spearman's rank correlation coefficient, Kendall's coefficient, partial correlation, dynamic time warping measure, and Kullback-Leibler relative entropy. For the constructed MSTs, their topological characteristics were analyzed and conclusions were drawn regarding the influence of the dissimilarity measure used. It turned out that the strength of most types of correlations was highly dependent on the choice of the numeraire currency, while partial correlations were invariant in this respect. It can be stated that a network built on the basis of partial correlations provides a more adequate illustration of pairwise relationships in the foreign exchange market. The data for quotations of 37 of the most important world currencies and four precious metals in the period from 1 January 2019 to 31 December 2022 were used. The outbreak of the COVID-19 pandemic in 2020 and Russia's invasion of Ukraine in 2022 triggered changes in the topology of the currency network. As a result of these crises, the average distances between tree nodes decreased and the centralization of graphs increased. Our results confirm that currencies are often pegged to other currencies due to countries' geographic locations and economic ties. The detected structures can be useful in descriptions of the currency market, can help in constructing a stable portfolio of the foreign exchange rates, and can be a valuable tool in searching for economic factors influencing specific groups of countries.